<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="jQuery/jquery-3.3.1.min.js"></script>
<link href="bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
<script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
    <title>导航栏</title>
    <style>
    *{
        margin: 0;
        font: 16px "微软雅黑";
        list-style:none;
        text-decoration: none;
    }
    #header{
        width: 100%;
        height: 100px;
    }
    #nav{
        width: 1200px;
        height: 50px;
        margin: auto;
    }
    #nav_logo{
        width: 60px;
        height:60px;
        float: left;
    }
    #nav_main{
        width: 1000px;
        height: 50px;
        float: left;
    }
    #search{
        padding: 50px 100px 10px;
        position: relative;
        left: 340px;
        top: 50px;
    }
    </style>
</head>
<body>
<div id="header">
    <div id="nav">
        <div id="nav_logo">
            <img src="img/logo.jpg" class="img-responsive">  
        </div> 
        <div id=nav_main class="navbar-right">
            <ul class="nav nav-tabs nav-justified">
                <li class="active"><a href="#">首页</a></li>
                <li><a href="#">知识资源</a></li>
                <li><a href="#">免费读书</a></li>
                <li><a href="#">信息资源</a></li>
                <li><a href="#">写个笔记</a></li>
                <li><a href="#">疑问解答</a></li>
                <li><a href="#"><span class="glyphicon glyphicon-user"></span>姓名</a></li>
                <li><a href="#">退出</a></li>
                <li><a href="#">帮助</a></li>
            </ul>
        </div>
        <div id="search">
            <form class="bs-example bs-example-form" role="form">
                <div class="row">
                    <div class="col-lg-6">
                        <div class="input-group">
                            <div class="input-group-btn">
                                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                                    我创建的
                                    <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu">
                                    <li><a href="index.html">我加入的</a></li>
                                </ul>
                            </div>
                            <input type="text" class="form-control" placeholder="搜索我创建的课程">
                        </div>
                    </div>
                </div>
            </form>    
        </div>
    </div>    
</div>
</body>
</html>